/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 服务人员总数 POST /geo/areaUser/countServeData */
export async function geoAreaUserCountServeDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/areaUser/countServeData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 删除 POST /geo/areaUser/deleteData */
export async function geoAreaUserDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaUserBoGeoAreaUserDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/areaUser/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /geo/areaUser/pageData */
export async function geoAreaUserPageDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaUserBoGeoAreaUserPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoGeoAreaUserVo>('/geo/areaUser/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /geo/areaUser/saveData */
export async function geoAreaUserSaveDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaUserBoGeoAreaUserSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/areaUser/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
